package com.atguigu.gmall.oms.vo;

import com.atguigu.gmall.pms.entity.SkuAttrValueEntity;
import com.atguigu.gmall.sms.vo.ItemSaleVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel("订单项")
public class OrderItemVo {

    @ApiModelProperty("商品id")
    private String skuId;
    @ApiModelProperty("商品标题")
    private String title;
    @ApiModelProperty("商品默认图片")
    private String defaultImage;
    @ApiModelProperty("商品实时价格")
    private BigDecimal price;
    @ApiModelProperty("数量")
    private Integer count;
    @ApiModelProperty("是否有货")
    private Boolean store = false;
    @ApiModelProperty("sku销售属性")
    private List<SkuAttrValueEntity> saleAttrs;
    @ApiModelProperty("sku营销属性")
    private List<ItemSaleVo> sales;

    @ApiModelProperty("sku重量")
    private BigDecimal weight;
}
